package com.crm.service.saling;

import com.crm.pojo.DispatcherDetail;
import com.crm.vo.DispatcherContractClientProductVO;
import com.crm.vo.DispatcherDetailProductCODetailVO;

import java.util.List;

/**
 * Created by dr5hx on 2018/8/23
 */
public interface DispatcherDetailService {
    /**
     * 保存发货详单
     *
     * @param list
     * @return
     */
    public List<DispatcherDetail> saveDispatcherDetailList(List<DispatcherDetail> list);


    /**
     * 保存发货详单
     *
     * @param dispatcherDetail
     * @return
     */
    public DispatcherDetail saveDispatcherDetail(DispatcherDetail dispatcherDetail);


    /**
     * 获取一个合同的发货单
     *
     * @param contractId
     * @return
     */
    public List<DispatcherDetailProductCODetailVO> getDispatcherDetailList(Long contractId);

    public void toCheck(Long did);

    /**
     * 显示一个发货详情
     *
     * @return
     */
    public List<DispatcherContractClientProductVO> getDispatcherContractClientProductVOList(int currpage, int rows);

    /**
     * 获取发货详单数量
     *
     * @return
     */
    public Long getDispatcherDetailsCount();


    public List<DispatcherDetail> getDispatcherDetailListByDispatcherId(Long dispatcherId);

    public List<DispatcherDetail> findAllBYdid(Long did);

}
